import os, zipfile, requests, shutil
workPath = os.getcwd()
def download(currentVersion):
    print("Working on " + workPath)
    print("Updating Config File / Downloading...")
    print(f"Now you are downloading version:{currentVersion}")
    url = f"https://downloads.cssummer.top/cs2prac/{currentVersion}/cs2prac.zip"
    r = requests.get(url)
    with open("cs2prac.zip", "wb") as code:
        code.write(r.content)
    return True
def unzip():
    with zipfile.ZipFile(workPath+"\cs2prac.zip", 'r') as zf:
        zf.extractall(workPath+"\zipped")
        print("Successfully unzipped!")
        return True
def mvfile(sourcePath,targetPath):
    shutil.move(sourcePath, targetPath)
    print("移动成功！！")
def removefile(cfgpath):
    os.remove()